package com.ruoyi.api.v1;

import com.ruoyi.cinema.domain.CarouselFigure;
import com.ruoyi.cinema.mapper.CarouselFigureMapper;
import com.ruoyi.cinema.service.ICarouselFigureService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController("v1_carousel")
@RequestMapping(value = "api/v1/carousel")
public class CarouselController {

    @Autowired
    private ICarouselFigureService carouselFigureService;
    @Autowired
    private CarouselFigureMapper carouselFigureMapper;

    @GetMapping("/list")
    public AjaxResult list(CarouselFigure carouselFigure)
    {

        List<CarouselFigure> list = carouselFigureMapper.selectCarouselFigureListForApi(carouselFigure);
        return AjaxResult.success(list);
    }
}
